﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newBS.aspx.cs" Inherits="GPCSC.Web.CM.newBS" %>

<%@ Register assembly="NickLee.Web.UI" namespace="NickLee.Web.UI" tagprefix="NickLee" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
        <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
        <link type="text/css" rel="Stylesheet" href="../Css/GridCss.css" />
     <link type="text/css" rel="Stylesheet" href="../Css/selectCss.css" />
     <link href="../Css/main.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript" src="../Scripts/FYJScript.js"></script>
       <script type="text/javascript"  src="../Scripts/jquery-1.6.2.min.js"> </script>     
<script type="text/javascript"  src="../Scripts/jquery-ui-1.8.16.custom.min.js"> </script>
       <link href="../Css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
        <script type ="text/javascript" src ="../scripts/datepicker/WdatePicker.js"></script>
             <style>
                 .table
                 {
                     width:100%;
                     margin-left:20px;
                     margin-right:20px;
                     }
             .td
             {
                 margin:50px;
                 font:  12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
                 color: #0161a1; 
                 text-align:center;
                 
                }
                .td img
                {
                    cursor:pointer;
                    }
             </style>
          <script>
              function bs() {

                  var checks = $("input[type='checkbox']");
                  if (checks.length > 0) {
                      for (var i = 0; i < checks.length; i++) {
                          if (checks[i].checked == true) {
                              document.getElementById("bsids").value += checks[i].value + "|";
                          }
                      }
                  }

                  var bsids = document.getElementById("bsids").value;
                  if (bsids == "") {
                      alert("请选择反馈表！");
                  }
                  else {
                      LCallBack.Callback("1", bsids);
                  }
              }
              function opne(hdid, userid) {
                  //                  alert("1");
                  window.open("../sjsbyes/FKB.aspx?hdid=" + hdid + "&userid=" + userid);
              }
              $(document).ready(
                function () {
                    $("td").addClass("td");
                    $("table").addClass("table");

                }
              );

              function LCallBack_onCallbackComplete() {
                  $("td").addClass("td");
                  $("table").addClass("table");
              }
              function sel() {
                  var name = $("#lgname").val();
                  var date = $("#date").val();
                  var zt = $("#bszt").val();
                  //                    alert(name + date + zt);
                  LCallBack.Callback("5", name, date, zt);
              }
              function date_onclick() {

              }

              function hide(e) {
                  //                    alert("1");
                  if (e.checked == true) {
                      //                        alert(true);
                      //隐藏
                      $("td[title='0']").hide();
                  }
                  else {
                      //                        alert(false);
                      //显示
                      $("td[title='0']").show();
                  }
              }

          </script>
          <script>
              function dels(e) {
                  document.getElementById("diss").value = $(e).attr("del");
                  locking();
              }
              function locking() {
                  document.all.ly.style.display = "block";
                  document.all.ly.style.width = document.body.clientWidth;
                  document.all.ly.style.height = document.body.clientHeight;
                  document.all.Layer2.style.display = 'block';
              }
              function Lock_CheckForm() {

                  document.all.ly.style.display = 'none';
                  document.all.Layer2.style.display = 'none';
              }
              function delss() {
                  var ids = $("#diss").val();
//                  alert(ids);
                  LCallBack.Callback("del", ids);
                  Lock_CheckForm();
              }
              function bss(e) {

                  var ids = $(e).attr("bs");
                  LCallBack.Callback("bs", ids);
              }
          </script>
          <script>

              function show(types,ids) {


                  if (types == "农村") {
                      types = "0";
                      window.location.href = "nchdxs.aspx?type=" + types + "&ids=" + ids;
                  }
                  else if (types == "社区") {
                      types = "1";
                      window.location.href = "nchdxs.aspx?type=" + types + "&ids=" + ids;
                  }

                  else if (types == "企业") {
                      types = "2";
                      window.location.href = "nchdxs.aspx?type=" + types + "&ids=" + ids;
                  }
              }
          </script>
          
</head>
<body>
    <form id="form1" runat="server">
    <div>
<%-- <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29" background="../Images/1.gif"><table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="300" class="tittle" style=" text-align:left">当前位置：报送活动进展反馈表</td>
      </tr>
    </table></td>
  </tr>
</tabl   e>--%>

         <div  style=" width:100%; text-align:center; margin:0px;" class="td">
         <input type="text" id="bsids" runat="server"  style=" display:none"/>
         领导人名称：<input type="text" id="lgname" />
         填写时间：<input type="text" id="date" onclick="return date_onclick()" />
          <img  style="margin-bottom:0px;"  src="../Images/calendar.gif"  onclick="WdatePicker({el:'date'})"/>
         报送状态：<select id="bszt">
            <option value="0" selected="selected">未复核</option>
            <option value="1">已复核</option>         
         </select>
         <input type="button" class="buttonCss" value=" 搜索"  onclick="sel()" />
         <%--<input type ="button" class="buttonCss" value="复核"  onclick="bs()" />--%>
         </div>
            <nicklee:CallBack runat="server" ID="LCallBack" OnCallback="LCallBack_Callback" PostState="True"
            Width="100%" Height="100%" 
            LoadingPanelFadeDuration="800" LoadingPanelFadeMaximumOpacity="80">
            <Content>
                <asp:Panel ID="Panel1" runat="server">
              
<div id="grid" class="grid" style=" margin:20px; border: 1px solid #C1DAD7; ">
 <%-- <input type="checkbox"  onclick="hide(this)" /><span style=" color: #0161a1;">隐藏未复核的表格</span>--%>
<asp:Repeater ID="PostListS" runat="server">
    <HeaderTemplate>
    
    
    <table width="100%" >
<tr height="26px" >
<th  rowspan="2" >
领导人名称
</th>
<th  rowspan="2" >
基层单位类型
</th>
<th rowspan="2" >
提交时间
</th>
<th  colspan="2" >
反馈情况
</th>
<th rowspan="2">
民情日记
<br />
篇数
</th>
<th rowspan="2">
调研报告
<br />
篇数
</th>
<th colspan="3" rowspan="2">
操作
</th>

</tr>
<tr>
<th>
活动形式统计表
</th>
<th>
基层单位统计表
</th>

</tr>
</HeaderTemplate>
<ItemTemplate>


<!--不带底色-->
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem, "USERNAME")%>
</td>

<td>
<%# DataBinder.Eval(Container.DataItem, "types")%>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "date")%>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "xs")%>
</td>

<td>
<%# DataBinder.Eval(Container.DataItem, "bgs")%>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "mq")%>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "bg")%>
</td>
<td style=" cursor:pointer" onclick ="show('<%# DataBinder.Eval(Container.DataItem, "types")%>','<%# DataBinder.Eval(Container.DataItem, "ids")%>')">
查看
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "title")%>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "titles")%>
</td>
</tr>

</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>

</asp:Repeater>
</div>
     </asp:Panel>
            </Content>
            <ClientEvents>
         <CallbackComplete EventHandler="LCallBack_onCallbackComplete" />
               <%-- <CallbackError EventHandler="LCallBack_onCallbackError" />--%>
            </ClientEvents>
            <LoadingPanelClientTemplate>
                <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0" border="0"
                    bgcolor="#e0e0e0">
                    <tr style="width: 100%; height: 100%;">
                        <td style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        数据载入中...&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        <img alt="" src="../images/GreenBar.gif" border="0" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
           </LoadingPanelClientTemplate>
         </nicklee:CallBack>
        
    </div>

              <div id="ly" style="position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777;
        z-index: 2; left: 0px; display: none;">
    </div>
      
    <div id="Layer2" align="center" style="position: absolute; left:200px; top:100px; z-index: 1000;  background-color: #fff; display:none;" >
      
        <input type="text" id="diss"  style=" display:none;"/>

        <div style="text-align:right">
        <img src="../Images/delete.gif" style=" cursor:pointer;"  title="关闭" onclick="Lock_CheckForm(this)" />
        </div>
        <div style=" margin-top:30px; margin-bottom:30px; margin-left:10px; margin-right:10px;">
        
        <div style=" font-size:18px; color:Red; font-weight:bold; float:left; margin-right:10px;">
        您确定数据
        <br />
        <br />
       &nbsp;&nbsp; 无效作废么？
        </div>
      
        <div onclick="delss()" style="float:left;  vertical-align:top; border: 1px solid #000; padding-top:2px; padding-bottom:2px; padding-left:10px; padding-right:10px; background-color:#BAE0E3; cursor:pointer;"  >
        确定
        </div>
        </div>
        <br />
        <br />
    </div>
    </div>
    </form>
</body>
</html>